CCFTool:  CCF archive packer/extractor  by HowardC
===============================================

Liscense:
=========
This application is free for personal use. This application may be distributed publically so long as it's free, the original docs are included, and
credit is given to "HowardC", the author.  This application may also be packed with other tools, so long as the liscense agreement is still upheld.

This tool uses gbalzss lz77 decompressor created by "Andre". For usage and credit regarding gbalzss refer to it's included readme.

Version 2.0
============
Added files with the .ccf.zlib extension to the filters when searching for a file as the misc.ccf always has zlib compression applied. 
Added an important note below about the .zlib extension which you should read.
Fixed some packing bugs which could cause errors.  
Added "old school" dos sort routine to give identical sort orders of the original file.  


Version 1.0
===========
Initial Release

Description:
============
This is a tool to extract and pack the .ccf archives found in sega virtual console games.  Data.ccf and misc.ccf (which is inside data.ccf) contain the roms
save banners, save titles, and other misc stuff that you might want to change.  

Usage:
===========
Extracting:

1a. Fill in the path to the file you wish to extract and press the extract button.
1b. Optionally you can also set the output folder, but this is done automatically if you leave that section blank.

2. Your file is now extracted! 

Packing:

1a. Fill in the path to the folder that contains all of your files.  Be sure to end the path with a "\"
1b. Optionally you can set the output file name, but this is done automatically if you leave that section blank.

2. Click "pack" and your file is now created!



Command Line Usage:
======================

ccftool.exe -file "path\to\filename.ccf" -folder "path\to\folder_out\" [-extract] [-pack]


-file "path\to\filename.ccf" = Path to the file, this can be the source or destination, depending upon if you are packing or extracting.

-folder "path\to\folder_out\" = Path to the folder, this can be the source or destination, depending upon if you are packing or extracting. Note you need to 
end this one with a "\"

-extract = extract the file to the folder
-pack = pack the folder into the file

IMPORTANT NOTE!!!!!!
=======================
Files with the .zlib extension are NOT zlib files.  This is my way of letting the extractor know which files to compress when packing the files back up. 
You can pretty much ignore the extension and rename the files while working with them.  



TODO/BUGS/ECT:
=================
There is next to no error handling, so that might be helpful.




